package com.service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {
    //验证 根据账号和密码来验证用户登录
    public User login(String account,String password);
    //分页查询用户
    public PageInfo<User> selectAll(int pageNum, String authtatus);
    //根据id查询用户
    public User selectById(long id);
    //修改用户信息
    public int updateUser(User user);
    //验证唯一
    public User selectByAccount(String account);
    //插入新用户
    public int insertUser(User user);
    //假删用户
    public int deleteUser(long id);
    //资质认证
    public int zzupdate(User user);
    //更新资质信息
    public int updateAuthtatus(long id,long authtatus);
}
